/* Shoptet Cooler Buttons CSS - Matching Cable Color Button Style */
.uc-watercooling-container {
    margin: 20px 0;
    position: relative;
    padding: 0;
    background: transparent;
}

/* Hide the custom dropdown */
.uc-watercooling-container + .uc-select-wrapper,
.uc-watercooling-container ~ .uc-select-wrapper,
select[data-parameter-name="Vodní chlazení"] + .uc-select-wrapper,
select[data-parameter-name="Vodní chlazení"] ~ .uc-select-wrapper,
.uc-wc-original-select + .uc-select-wrapper,
.uc-wc-original-select ~ .uc-select-wrapper {
    display: none !important;
}

/* Also hide by class directly if it's a sibling */
.surcharge-list .uc-select-wrapper:has(+ select[data-parameter-name="Vodní chlazení"]),
.surcharge-list .uc-select-wrapper:has(~ select[data-parameter-name="Vodní chlazení"]) {
    display: none !important;
}

/* Hide the dropdown that contains Vodní chlazení select */
select[data-parameter-name="Vodní chlazení"].uc-wc-original-select ~ .uc-select-wrapper,
select[data-parameter-name="Vodní chlazení"].uc-enhanced ~ .uc-select-wrapper {
    display: none !important;
}

.uc-watercooling-buttons-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.uc-watercooling-btn {
    padding: 14px 20px;
    border: 2px solid rgba(139, 69, 228, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-width: 155px;
    max-width: 220px;
    min-height: 75px;
    position: relative;
    color: #ffffff;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 69, 228, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: visible;
    z-index: 3;
    flex: 1;
}

/* Background image layer - similar to cable buttons */
.uc-watercooling-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    z-index: -2;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.uc-watercooling-btn[data-color="white"]::before {
    background-image: url('https://www.ultracomp.cz/user/documents/upload/Vodní chlazení/ultracomp_aio-white.jpg');
}

.uc-watercooling-btn[data-color="black"]::before {
    background-image: url('https://www.ultracomp.cz/user/documents/upload/Vodní chlazení/ultracomp_aio-black.jpg');
}

/* Dark overlay for text readability - matching cable buttons */
.uc-watercooling-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 12px;
    z-index: -1;
    transition: background 0.4s ease;
}

.uc-watercooling-btn:hover {
    border-color: rgba(139, 69, 228, 0.8);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(139, 69, 228, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(139, 69, 228, 0.6);
}

.uc-watercooling-btn:hover::after {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Selected state - blur background like cable buttons */
.uc-watercooling-btn.uc-wc-selected::before {
    filter: blur(8px) brightness(0.8);
}

.uc-watercooling-btn.uc-wc-selected::after {
    background: linear-gradient(135deg, rgba(139, 69, 228, 0.4) 0%, rgba(75, 0, 130, 0.5) 100%);
}

.uc-watercooling-btn.uc-wc-selected {
    border-color: rgba(139, 69, 228, 1);
    color: #ffffff;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(139, 69, 228, 0.8);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(139, 69, 228, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(139, 69, 228, 0.3);
    transform: translateY(-2px);
    animation: uc-wc-pulse-glow 2s infinite;
}

@keyframes uc-wc-pulse-glow {
    0%, 100% {
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.7),
            0 0 40px rgba(139, 69, 228, 0.6),
            inset 0 2px 0 rgba(255, 255, 255, 0.2),
            inset 0 0 20px rgba(139, 69, 228, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.7),
            0 0 50px rgba(139, 69, 228, 0.8),
            inset 0 2px 0 rgba(255, 255, 255, 0.2),
            inset 0 0 20px rgba(139, 69, 228, 0.4);
    }
}

/* Keep same purple styling on hover when selected */
.uc-watercooling-btn.uc-wc-selected:hover {
    border-color: rgba(139, 69, 228, 1);
    animation: none;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(139, 69, 228, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(139, 69, 228, 0.3);
}

.uc-watercooling-btn.uc-wc-selected:hover::after {
    background: linear-gradient(135deg, rgba(139, 69, 228, 0.4) 0%, rgba(75, 0, 130, 0.5) 100%);
}

.uc-watercooling-checkmark {
    position: absolute;
    top: -10px;
    right: -10px;
    background: 
        linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 
        0 0 15px rgba(40, 167, 69, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    transform: scale(0);
}

.uc-watercooling-btn.uc-wc-selected .uc-watercooling-checkmark {
    opacity: 1;
    transform: scale(1);
}

/* Force checkmark to stay green on ALL hover states */
.uc-watercooling-btn:hover .uc-watercooling-checkmark,
.uc-watercooling-btn.uc-wc-selected:hover .uc-watercooling-checkmark,
.uc-watercooling-btn:focus .uc-watercooling-checkmark,
.uc-watercooling-btn.uc-wc-selected:focus .uc-watercooling-checkmark {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    box-shadow: 
        0 0 15px rgba(40, 167, 69, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Hide the original select dropdown */
.uc-watercooling-container .uc-wc-original-select,
select[data-parameter-name="Vodní chlazení"].uc-wc-original-select {
    display: none !important;
}

/* Button content positioning */
.uc-watercooling-btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    height: 100%;
    padding-top: 22px;
}

/* Hide the img element since background handles the image */
.uc-watercooling-product-img {
    display: none;
}

/* Cooler title styling */
.uc-watercooling-model-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.8);
}

/* Cooler color variant styling */
.uc-watercooling-variant-label {
    font-size: 11px;
    color: #e0e0e0;
    font-weight: 500;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Price styling - matching cable button style */
.uc-watercooling-btn .uc-wc-price {
    font-weight: 700;
    color: #00ff88;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 255, 136, 0.5);
    display: block;
    margin-top: 2px;
    font-size: 12px;
    position: relative;
    z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    .uc-watercooling-buttons-grid {
        gap: 10px;
    }
    
    .uc-watercooling-btn {
        min-width: 160px;
        min-height: 120px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .uc-watercooling-btn-content {
        padding-top: 50px;
    }
    
    .uc-watercooling-model-name {
        font-size: 12px;
    }
    
    .uc-watercooling-btn .uc-wc-price {
        font-size: 12px;
    }
    
    .uc-watercooling-checkmark {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -8px;
        right: -8px;
    }
}

@media (max-width: 480px) {
    .uc-watercooling-buttons-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }
    
    .uc-watercooling-btn {
        width: calc(50% - 4px);
        min-width: auto;
        max-width: none;
        padding: 12px 16px;
        min-height: 100px;
        font-size: 12px;
    }
    
    /* Cover background for mobile */
    .uc-watercooling-btn::before {
        background-size: cover;
        background-position: center;
    }
    
    /* Darker overlay for better text visibility on mobile */
    .uc-watercooling-btn::after {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    }
    
    .uc-watercooling-container {
        padding: 0;
        margin: 15px 0;
    }
    
    .uc-watercooling-btn-content {
        padding-top: 40px;
    }
}
